import logApi from "@/api/declaration/logApi"
import httpRequest from "@/config/axios/httpRequest"




// 查询列表API 访问日志
export const getApiErrorLogPage = (params: PageParam) => {
  return httpRequest.get(logApi.GetApiErrorLogPage, 
    { params })
}

// 更新 API 错误日志的处理状态
export const updateApiErrorLogPage = (id: number, processStatus: number) => {
  return httpRequest.put(logApi.UpdateApiErrorLogPage, 
    { id, processStatus })
}

// 导出API 访问日志
export const exportApiErrorLog = (params) => {
  return httpRequest.download(logApi.ExportApiErrorLog, 
     params)
}
